
#ifndef UI_COORDINATEWIDGET_H
#define UI_COORDINATEWIDGET_H

#include "ui_ui_coordinatewidget.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_CoordinateWidget : public QWidget, public Ui::UI_CoordinateWidget
{
    Q_OBJECT

public:
    UI_CoordinateWidget(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~UI_CoordinateWidget();

public slots:
    virtual void init();
    virtual void setGraphic( PF_Graphic * graphic );
    virtual void setCoordinates( const PF_Vector & abs, const PF_Vector & rel, bool updateFormat );
    virtual void setCoordinates( double x, double y, double rx, double ry, bool updateFormat );

protected slots:
    virtual void languageChange();

private:
    PF_Graphic* graphic;
    int prec;
    LX_Define::LinearFormat format;
    int aprec;
    LX_Define::AngleFormat aformat;

};

#endif // QG_COORDINATEWIDGET_H
